package com.boyunv.state.example01;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/8/27 21:13
 *@version 1.0
 */

public class ConcreteStateB implements State{
    @Override
    public void handle(Context context) {
        System.out.println("进入到状态模式B'''''''''''''''''");
        context.setCurrentState(this);
    }
    
    @Override
    public String toString() {
        return "当前年状态: concreteStateB";
    }
}
